﻿
package system.data;

import java.util.*;

import framework.core.*;
/*
	Author    :Jackey
	CreateTime:2008-03-03 10:25:50
*/
public class ServerDownupfileInfoBase extends Table 
{
public static final String TABLE_NAME = "T_SERVER_DOWNUPFILE_INFO";

private static final String BACKUP_TABLE_NAME = "T_SERVER_DOWNUPFILE_INFO_BACKUP";

private static final String BACKUP_SEQ_NAME = "S_SERVER_DOWNUPFILE_INFO_BACKUP";


public static final String ID = "ID";

public static final String DOWNLOADTYP = "DOWNLOADTYP";

public static final String WAREHOUSE_UINCODE = "WAREHOUSE_UINCODE";

public static final String DATATABLE_NAME = "DATATABLE_NAME";

public static final String PARMSTYPE = "PARMSTYPE";

public static final String PARMSSTR = "PARMSSTR";

public static final String UPDOWN_STATE = "UPDOWN_STATE";

public static final String STATUS = "STATUS";

public static final String CREATE_USER_ID = "CREATE_USER_ID";

public static final String CREATE_USER = "CREATE_USER";

public static final String CREATE_TIME = "CREATE_TIME";

public static final String LAST_UPDATE_USER_ID = "LAST_UPDATE_USER_ID";

public static final String LAST_UPDATE_USER = "LAST_UPDATE_USER";

public static final String LAST_UPDATE_TIME = "LAST_UPDATE_TIME";


public static Vector m_fields = null;


private String m_id = ""; //ID

private String m_downloadtyp = ""; //上传下载类型

private String m_warehouse_uincode = ""; //仓库统一编码

private String m_datatable_name = ""; //数据表名

private String m_parmstype = ""; //参数类型

private String m_parmsstr = ""; //参数时间

private String m_updown_state = ""; //上传下载状态

private String m_status = ""; //是否有效

private String m_create_user_id = ""; //创建人序号

private String m_create_user = ""; //创建人

private String m_create_time = ""; //创建时间

private String m_last_update_user_id = ""; //最后修改人序号

private String m_last_update_user = ""; //最后修改人

private String m_last_update_time = ""; //最后修改时间



	public String getId()
	{
	    return m_id;
	}
	public void  setId(String v)
	{
		if(getId().equals(v)) return ;
		m_id = v ;
		markDirty(ID);
	}



	

	public String getDownloadtyp()
	{
	    return m_downloadtyp;
	}
	public void  setDownloadtyp(String v)
	{
		if(getDownloadtyp().equals(v)) return ;
		m_downloadtyp = v ;
		markDirty(DOWNLOADTYP);
	}



	

	public String getWarehouseUincode()
	{
	    return m_warehouse_uincode;
	}
	public void  setWarehouseUincode(String v)
	{
		if(getWarehouseUincode().equals(v)) return ;
		m_warehouse_uincode = v ;
		markDirty(WAREHOUSE_UINCODE);
	}



	

	public String getDatatableName()
	{
	    return m_datatable_name;
	}
	public void  setDatatableName(String v)
	{
		if(getDatatableName().equals(v)) return ;
		m_datatable_name = v ;
		markDirty(DATATABLE_NAME);
	}



	

	public String getParmstype()
	{
	    return m_parmstype;
	}
	public void  setParmstype(String v)
	{
		if(getParmstype().equals(v)) return ;
		m_parmstype = v ;
		markDirty(PARMSTYPE);
	}



	

	public String getParmsstr()
	{
	    return m_parmsstr;
	}
	public void  setParmsstr(String v)
	{
		if(getParmsstr().equals(v)) return ;
		m_parmsstr = v ;
		markDirty(PARMSSTR);
	}



	

	public String getUpdownState()
	{
	    return m_updown_state;
	}
	public void  setUpdownState(String v)
	{
		if(getUpdownState().equals(v)) return ;
		m_updown_state = v ;
		markDirty(UPDOWN_STATE);
	}



	

	public String getStatus()
	{
	    return m_status;
	}
	public void  setStatus(String v)
	{
		if(getStatus().equals(v)) return ;
		m_status = v ;
		markDirty(STATUS);
	}



	

	public String getCreateUserId()
	{
	    return m_create_user_id;
	}
	public void  setCreateUserId(String v)
	{
		if(getCreateUserId().equals(v)) return ;
		m_create_user_id = v ;
		markDirty(CREATE_USER_ID);
	}



	

	public String getCreateUser()
	{
	    return m_create_user;
	}
	public void  setCreateUser(String v)
	{
		if(getCreateUser().equals(v)) return ;
		m_create_user = v ;
		markDirty(CREATE_USER);
	}



	

	public String getCreateTime()
	{
	    return m_create_time;
	}
	public void  setCreateTime(String v)
	{
		if(getCreateTime().equals(v)) return ;
		m_create_time = v ;
		markDirty(CREATE_TIME);
	}



	

	public String getLastUpdateUserId()
	{
	    return m_last_update_user_id;
	}
	public void  setLastUpdateUserId(String v)
	{
		if(getLastUpdateUserId().equals(v)) return ;
		m_last_update_user_id = v ;
		markDirty(LAST_UPDATE_USER_ID);
	}



	

	public String getLastUpdateUser()
	{
	    return m_last_update_user;
	}
	public void  setLastUpdateUser(String v)
	{
		if(getLastUpdateUser().equals(v)) return ;
		m_last_update_user = v ;
		markDirty(LAST_UPDATE_USER);
	}



	

	public String getLastUpdateTime()
	{
	    return m_last_update_time;
	}
	public void  setLastUpdateTime(String v)
	{
		if(getLastUpdateTime().equals(v)) return ;
		m_last_update_time = v ;
		markDirty(LAST_UPDATE_TIME);
	}



	



	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewDownloadtyp(DBConnection con) throws Exception
	{
		return Value.view(getDownloadtyp());
	}

	public String viewWarehouseUincode(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseUincode());
	}

	public String viewDatatableName(DBConnection con) throws Exception
	{
		return Value.view(getDatatableName());
	}

	public String viewParmstype(DBConnection con) throws Exception
	{
		return Value.view(getParmstype());
	}

	public String viewParmsstr(DBConnection con) throws Exception
	{
		return Value.view(getParmsstr());
	}

	public String viewUpdownState(DBConnection con) throws Exception
	{
		return Value.view(getUpdownState());
	}

	public String viewStatus(DBConnection con) throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId(DBConnection con) throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser(DBConnection con) throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime(DBConnection con) throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime(DBConnection con) throws Exception
	{
		return Value.view(getLastUpdateTime());
	}



protected ServerDownupfileInfoBase()
{
}

public void fill(ServerDownupfileInfoPageData pageData) throws Exception
{

	if(pageData.getId()!=null)
	{	
		setId(pageData.getId());
	}

	if(pageData.getDownloadtyp()!=null)
	{	
		setDownloadtyp(pageData.getDownloadtyp());
	}

	if(pageData.getWarehouseUincode()!=null)
	{	
		setWarehouseUincode(pageData.getWarehouseUincode());
	}

	if(pageData.getDatatableName()!=null)
	{	
		setDatatableName(pageData.getDatatableName());
	}

	if(pageData.getParmstype()!=null)
	{	
		setParmstype(pageData.getParmstype());
	}

	if(pageData.getParmsstr()!=null)
	{	
		setParmsstr(pageData.getParmsstr());
	}

	if(pageData.getUpdownState()!=null)
	{	
		setUpdownState(pageData.getUpdownState());
	}

	if(pageData.getStatus()!=null)
	{	
		setStatus(pageData.getStatus());
	}

	if(pageData.getCreateUserId()!=null)
	{	
		setCreateUserId(pageData.getCreateUserId());
	}

	if(pageData.getCreateUser()!=null)
	{	
		setCreateUser(pageData.getCreateUser());
	}

	if(pageData.getCreateTime()!=null)
	{	
		setCreateTime(pageData.getCreateTime());
	}

	if(pageData.getLastUpdateUserId()!=null)
	{	
		setLastUpdateUserId(pageData.getLastUpdateUserId());
	}

	if(pageData.getLastUpdateUser()!=null)
	{	
		setLastUpdateUser(pageData.getLastUpdateUser());
	}

	if(pageData.getLastUpdateTime()!=null)
	{	
		setLastUpdateTime(pageData.getLastUpdateTime());
	}

}

public String getTableName() 
{
	return TABLE_NAME;
}

public String getBackupTableName() 
{
	return BACKUP_TABLE_NAME;
}

public String getBackupSeqName() 
{
	return BACKUP_SEQ_NAME;
}

public java.util.Vector getFields() 
{
	if(m_fields==null)
	{
		m_fields = new Vector();

		m_fields.add(new Field(ID,Value.TYPE_STRING,true,true,32,"ID"));

		m_fields.add(new Field(DOWNLOADTYP,Value.TYPE_STRING,false,true,20,"上传下载类型"));

		m_fields.add(new Field(WAREHOUSE_UINCODE,Value.TYPE_STRING,false,true,20,"仓库统一编码"));

		m_fields.add(new Field(DATATABLE_NAME,Value.TYPE_STRING,false,true,200,"数据表名"));

		m_fields.add(new Field(PARMSTYPE,Value.TYPE_STRING,false,true,20,"参数类型"));

		m_fields.add(new Field(PARMSSTR,Value.TYPE_STRING,false,false,100,"参数时间"));

		m_fields.add(new Field(UPDOWN_STATE,Value.TYPE_STRING,false,true,10,"上传下载状态"));

		m_fields.add(new Field(STATUS,Value.TYPE_STRING,false,true,1,"是否有效"));

		m_fields.add(new Field(CREATE_USER_ID,Value.TYPE_STRING,false,true,32,"创建人序号"));

		m_fields.add(new Field(CREATE_USER,Value.TYPE_STRING,false,true,50,"创建人"));

		m_fields.add(new Field(CREATE_TIME,Value.TYPE_STRING,false,true,20,"创建时间"));

		m_fields.add(new Field(LAST_UPDATE_USER_ID,Value.TYPE_STRING,false,true,32,"最后修改人序号"));

		m_fields.add(new Field(LAST_UPDATE_USER,Value.TYPE_STRING,false,true,50,"最后修改人"));

		m_fields.add(new Field(LAST_UPDATE_TIME,Value.TYPE_STRING,false,true,20,"最后修改时间"));
		
	}
	return m_fields;
}

public void initObject(java.sql.ResultSet rs) throws Exception
{

	m_id = getString(rs,ID);

	m_downloadtyp = getString(rs,DOWNLOADTYP);

	m_warehouse_uincode = getString(rs,WAREHOUSE_UINCODE);

	m_datatable_name = getString(rs,DATATABLE_NAME);

	m_parmstype = getString(rs,PARMSTYPE);

	m_parmsstr = getString(rs,PARMSSTR);

	m_updown_state = getString(rs,UPDOWN_STATE);

	m_status = getString(rs,STATUS);

	m_create_user_id = getString(rs,CREATE_USER_ID);

	m_create_user = getString(rs,CREATE_USER);

	m_create_time = getString(rs,CREATE_TIME);

	m_last_update_user_id = getString(rs,LAST_UPDATE_USER_ID);

	m_last_update_user = getString(rs,LAST_UPDATE_USER);

	m_last_update_time = getString(rs,LAST_UPDATE_TIME);

	ms_new_flag = ConstDefine.NO;
}

public Value get(String f)
{

	if(f.equalsIgnoreCase(ID))
	{
		return new Value(getId());
	}

	if(f.equalsIgnoreCase(DOWNLOADTYP))
	{
		return new Value(getDownloadtyp());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_UINCODE))
	{
		return new Value(getWarehouseUincode());
	}

	if(f.equalsIgnoreCase(DATATABLE_NAME))
	{
		return new Value(getDatatableName());
	}

	if(f.equalsIgnoreCase(PARMSTYPE))
	{
		return new Value(getParmstype());
	}

	if(f.equalsIgnoreCase(PARMSSTR))
	{
		return new Value(getParmsstr());
	}

	if(f.equalsIgnoreCase(UPDOWN_STATE))
	{
		return new Value(getUpdownState());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		return new Value(getStatus());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		return new Value(getCreateUserId());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		return new Value(getCreateUser());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		return new Value(getCreateTime());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		return new Value(getLastUpdateUserId());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		return new Value(getLastUpdateUser());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		return new Value(getLastUpdateTime());
	}
	
	return null;
}
public void set(String f,Value v) throws Exception
{

	if(f.equalsIgnoreCase(ID))
	{
		setId(v.getString());
	}

	if(f.equalsIgnoreCase(DOWNLOADTYP))
	{
		setDownloadtyp(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_UINCODE))
	{
		setWarehouseUincode(v.getString());
	}

	if(f.equalsIgnoreCase(DATATABLE_NAME))
	{
		setDatatableName(v.getString());
	}

	if(f.equalsIgnoreCase(PARMSTYPE))
	{
		setParmstype(v.getString());
	}

	if(f.equalsIgnoreCase(PARMSSTR))
	{
		setParmsstr(v.getString());
	}

	if(f.equalsIgnoreCase(UPDOWN_STATE))
	{
		setUpdownState(v.getString());
	}

	if(f.equalsIgnoreCase(STATUS))
	{
		setStatus(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER_ID))
	{
		setCreateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_USER))
	{
		setCreateUser(v.getString());
	}

	if(f.equalsIgnoreCase(CREATE_TIME))
	{
		setCreateTime(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER_ID))
	{
		setLastUpdateUserId(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_USER))
	{
		setLastUpdateUser(v.getString());
	}

	if(f.equalsIgnoreCase(LAST_UPDATE_TIME))
	{
		setLastUpdateTime(v.getString());
	}
	
}
public String toString()
{
	String msg = "ServerDownupfileInfo=\n";
	msg += "(\r\n";

	msg += "    ID(id)="+get("id")+"\r\n";

	msg += "    上传下载类型(downloadtyp)="+get("downloadtyp")+"\r\n";

	msg += "    仓库统一编码(warehouse_uincode)="+get("warehouse_uincode")+"\r\n";

	msg += "    数据表名(datatable_name)="+get("datatable_name")+"\r\n";

	msg += "    参数类型(parmstype)="+get("parmstype")+"\r\n";

	msg += "    参数时间(parmsstr)="+get("parmsstr")+"\r\n";

	msg += "    上传下载状态(updown_state)="+get("updown_state")+"\r\n";

	msg += "    是否有效(status)="+get("status")+"\r\n";

	msg += "    创建人序号(create_user_id)="+get("create_user_id")+"\r\n";

	msg += "    创建人(create_user)="+get("create_user")+"\r\n";

	msg += "    创建时间(create_time)="+get("create_time")+"\r\n";

	msg += "    最后修改人序号(last_update_user_id)="+get("last_update_user_id")+"\r\n";

	msg += "    最后修改人(last_update_user)="+get("last_update_user")+"\r\n";

	msg += "    最后修改时间(last_update_time)="+get("last_update_time")+"\r\n";
		
	msg += ")\r\n";
	return msg;
}
public void copyBase(ServerDownupfileInfoBase srcObj)
{

	setDownloadtyp(srcObj.getDownloadtyp());

	setWarehouseUincode(srcObj.getWarehouseUincode());

	setDatatableName(srcObj.getDatatableName());

	setParmstype(srcObj.getParmstype());

	setParmsstr(srcObj.getParmsstr());

	setUpdownState(srcObj.getUpdownState());

	setStatus(srcObj.getStatus());

	setCreateUserId(srcObj.getCreateUserId());

	setCreateUser(srcObj.getCreateUser());

	setCreateTime(srcObj.getCreateTime());

	setLastUpdateUserId(srcObj.getLastUpdateUserId());

	setLastUpdateUser(srcObj.getLastUpdateUser());

	setLastUpdateTime(srcObj.getLastUpdateTime());

}

public String toXml() throws Exception
{
	String xml = "";
	xml += "<ServerDownupfileInfo>";

	xml += "<Id>"+Value.view(getId())+"</Id>";

	xml += "<Downloadtyp>"+Value.view(getDownloadtyp())+"</Downloadtyp>";

	xml += "<WarehouseUincode>"+Value.view(getWarehouseUincode())+"</WarehouseUincode>";

	xml += "<DatatableName>"+Value.view(getDatatableName())+"</DatatableName>";

	xml += "<Parmstype>"+Value.view(getParmstype())+"</Parmstype>";

	xml += "<Parmsstr>"+Value.view(getParmsstr())+"</Parmsstr>";

	xml += "<UpdownState>"+Value.view(getUpdownState())+"</UpdownState>";

	xml += "<Status>"+Value.view(getStatus())+"</Status>";

	xml += "<CreateUserId>"+Value.view(getCreateUserId())+"</CreateUserId>";

	xml += "<CreateUser>"+Value.view(getCreateUser())+"</CreateUser>";

	xml += "<CreateTime>"+Value.view(getCreateTime())+"</CreateTime>";

	xml += "<LastUpdateUserId>"+Value.view(getLastUpdateUserId())+"</LastUpdateUserId>";

	xml += "<LastUpdateUser>"+Value.view(getLastUpdateUser())+"</LastUpdateUser>";

	xml += "<LastUpdateTime>"+Value.view(getLastUpdateTime())+"</LastUpdateTime>";
	
	xml += "</ServerDownupfileInfo>";
	return xml;
}

}
